﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="S7.Windows.Menu.AddItem"
    Title="Add Menu Item" Height="361" Width="600" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen" Background="{DynamicResource BackgroundColor}" FontSize="18" Loaded="Window_Loaded" Closing="Window_Closing" mc:Ignorable="d" ResizeMode="NoResize">
    <Grid>
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition/>
    	</Grid.ColumnDefinitions>
    	<StackPanel Margin="8">
    		<DockPanel Margin="0,0,0,24">
    			<Label Content="Category"/>
    			<ComboBox x:Name="cbCategories" Width="200" HorizontalAlignment="Right"/>
    		</DockPanel>
    		<DockPanel Margin="0,0,0,24">
    			<Label Content="Name"/>
    			<TextBox x:Name="tbName" Width="200" TextWrapping="Wrap" HorizontalAlignment="Right"/>
    		</DockPanel>
    		<DockPanel Margin="0,0,0,24">
    			<Label Content="Price"/>
    			<TextBox x:Name="tbPrice" HorizontalAlignment="Right" Width="200" TextWrapping="Wrap"/>
    		</DockPanel>
    		<DockPanel Margin="0,0,0,24">
    			<Label Content="Picture"/>
    			<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
    				<TextBox x:Name="tbLocation" Width="280" TextWrapping="WrapWithOverflow" Margin="0,0,19,0" FontSize="12"/>
    				<Button x:Name="btnOpen" Width="100" Content="Open" Click="btnOpen_Click" d:LayoutOverrides="Height"/>
    			</StackPanel>
    		</DockPanel>
    		<DockPanel Margin="0,0,0,24">
    			<Label Content="Description"/>
    			<TextBox x:Name="tbDescription" HorizontalAlignment="Right" Width="400" TextWrapping="Wrap" MinLines="2"/>
    		</DockPanel>
    		<DockPanel Margin="0,0,0,24">
    			<Button x:Name="btnSave" HorizontalAlignment="Right" Width="100" Content="Save" Click="btnSave_Click"/>
    			<Button x:Name="btnCancel" HorizontalAlignment="Right" Width="100" Content="Cancel" Click="btnCancel_Click"/>
    		</DockPanel>
    	</StackPanel>
        
    </Grid>
</Window>
